# Script to install all required packages.
# Please ensure the packages versions are correct as stated in "R Packages Versions.xlsx"
list.of.packages <- readLines("Scripts/requiredPackages.txt")

new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])]
if(length(new.packages)) install.packages(new.packages)
lapply(list.of.packages, library, character.only = TRUE)